package cn.qf.log4j;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

public class HelloLog {

    /**
     * 需要输出日志的类，可以创建一个log属性
     */
    Log log = LogFactory.getLog(HelloLog.class);

    @Test
    public void test1(){
        log.trace("hello trace");
        log.debug("hello debug");
        log.info("hello info");
        log.warn("hello warn");
        log.error("hello error");
        log.fatal("hello fatal");
    }
}
